package com.ruoyi.web.controller.wq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.wq.domain.WqUserFriend;
import com.ruoyi.wq.domain.vo.WqUserFriendVO;
import com.ruoyi.wq.service.IWqUserFriendService;

/**
 * 用户朋友Controller
 * 
 * @author ruoyi
 * @date 2022-08-26
 */
@RestController
@RequestMapping("/wq/userFriend")
public class WqUserFriendController extends BaseController{
	
    @Autowired
    private IWqUserFriendService wqUserFriendService;

    /**
     * 查询用户朋友列表
     */
    @Anonymous
    @GetMapping("/list")
    public TableDataInfo list(WqUserFriend wqUserFriend){
    	TableDataInfo list = wqUserFriendService.selectWqUserFriendList(wqUserFriend);
    	return list;
    }
    
    /**
     * 查询用户朋友列表
     */
    @GetMapping("/getPageList")
    public TableDataInfo getPageList(WqUserFriendVO wqUserFriend){
    	TableDataInfo list = wqUserFriendService.getPageList(wqUserFriend);
        return list;
    }
    
    /**
     * 查询用户朋友列表
     */
    @GetMapping("/getMyPageList")
    public TableDataInfo getMyPageList(WqUserFriendVO wqUserFriend){
    	TableDataInfo list = wqUserFriendService.getMyPageList(wqUserFriend);
        return list;
    }
    
}
